package com.sunjob.common.domain.tech;

import com.sunjob.common.domain.loginServer.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author : xiaozhoutongxue
 * @date : 2022/8/19 16:15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class RepairProcess extends BaseEntity {
    /** 一级修程工艺id */
    private Long repairProcessId;
    /** 一级修程工艺name */
    private String repairProcessName;
    /** 总步骤数 */
    private int stepCount;
    /** 版本号 */
    private Long version;

    private List<Step> steps;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @ToString
    public static class Step{
        /** 步数 */
        private Integer order;
        /** 文字描述 */
        private String text;
        /** 图片id */
        private Long picId;
        /** 图片对象 */
        private MultipartFile multipartFile;

    }

}